/**
- * SECTION:gtkprintsettings
- * @Short_description: Stores print settings
- * @Title: GtkPrintSettings
+ * GtkPrintSettings:
*
- * A GtkPrintSettings object represents the settings of a print dialog in
- * a system-independent way. The main use for this object is that once
- * you’ve printed you can get a settings object that represents the settings
- * the user chose, and the next time you print you can pass that object in so
- * that the user doesn’t have to re-set all his settings.
+ * A `GtkPrintSettings` object represents the settings of a print dialog in
+ * a system-independent way.
+ *
+ * The main use for this object is that once you’ve printed you can get a
+ * settings object that represents the settings the user chose, and the next
+ * time you print you can pass that object in so that the user doesn’t have
+ * to re-set all his settings.
*
* Its also possible to enumerate the settings so that you can easily save
* the settings for the next time your app runs, or even store them in a
/**
* gtk_print_settings_new:
- *
- * Creates a new #GtkPrintSettings object.
- *
- * Returns: a new #GtkPrintSettings object
+ *
+ * Creates a new `GtkPrintSettings` object.
+ *
+ * Returns: a new `GtkPrintSettings` object
*/
GtkPrintSettings *
gtk_print_settings_new (void)
/**
* gtk_print_settings_copy:
- * @other: a #GtkPrintSettings
+ * @other: a `GtkPrintSettings`
*
- * Copies a #GtkPrintSettings object.
+ * Copies a `GtkPrintSettings` object.
*
* Returns: (transfer full): a newly allocated copy of @other
*/
/**
* gtk_print_settings_get:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @key: a key
- *
+ *
* Looks up the string value associated with @key.
- *
+ *
* Returns: the string value for @key
*/
const char *
/**
* gtk_print_settings_set:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @key: a key
* @value: (allow-none): a string value, or %NULL
*
/**
* gtk_print_settings_unset:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @key: a key
- *
- * Removes any value associated with @key.
+ *
+ * Removes any value associated with @key.
+ *
* This has the same effect as setting the value to %NULL.
*/
void
/**
* gtk_print_settings_has_key:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @key: a key
- *
+ *
* Returns %TRUE, if a value is associated with @key.
- *
+ *
* Returns: %TRUE, if @key has a value
*/
gboolean
/**
* gtk_print_settings_get_bool:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @key: a key
- *
+ *
* Returns the boolean represented by the value
- * that is associated with @key.
+ * that is associated with @key.
*
- * The string “true” represents %TRUE, any other
+ * The string “true” represents %TRUE, any other
* string %FALSE.
*
* Returns: %TRUE, if @key maps to a true value.
- **/
+ */
gboolean
gtk_print_settings_get_bool (GtkPrintSettings *settings,
const char *key)
/**
* gtk_print_settings_get_bool_with_default:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @key: a key
* @default_val: the default value
- *
+ *
* Returns the boolean represented by the value
* that is associated with @key, or @default_val
* if the value does not represent a boolean.
/**
* gtk_print_settings_set_bool:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @key: a key
* @value: a boolean
- *
+ *
* Sets @key to a boolean value.
*/
void
/**
* gtk_print_settings_get_double_with_default:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @key: a key
* @def: the default value
- *
- * Returns the floating point number represented by
+ *
+ * Returns the floating point number represented by
* the value that is associated with @key, or @default_val
* if the value does not represent a floating point number.
*
/**
* gtk_print_settings_get_double:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @key: a key
- *
+ *
* Returns the double value associated with @key, or 0.
- *
+ *
* Returns: the double value of @key
*/
double
/**
* gtk_print_settings_set_double:
- * @settings: a #GtkPrintSettings
- * @key: a key
+ * @settings: a `GtkPrintSettings`
+ * @key: a key
* @value: a double value
- *
+ *
* Sets @key to a double value.
*/
void
/**
* gtk_print_settings_get_length:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @key: a key
* @unit: the unit of the return value
- *
+ *
* Returns the value associated with @key, interpreted
- * as a length. The returned value is converted to @units.
- *
+ * as a length.
+ *
+ * The returned value is converted to @units.
+ *
* Returns: the length value of @key, converted to @unit
*/
double
/**
* gtk_print_settings_set_length:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @key: a key
* @value: a length
* @unit: the unit of @length
- *
+ *
* Associates a length in units of @unit with @key.
*/
void
/**
* gtk_print_settings_get_int_with_default:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @key: a key
* @def: the default value
- *
+ *
* Returns the value of @key, interpreted as
* an integer, or the default value.
- *
+ *
* Returns: the integer value of @key
*/
int
/**
* gtk_print_settings_get_int:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @key: a key
- *
+ *
* Returns the integer value of @key, or 0.
- *
- * Returns: the integer value of @key
+ *
+ * Returns: the integer value of @key
*/
int
gtk_print_settings_get_int (GtkPrintSettings *settings,
/**
* gtk_print_settings_set_int:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @key: a key
- * @value: an integer
- *
+ * @value: an integer
+ *
* Sets @key to an integer value.
*/
void
/**
* gtk_print_settings_foreach:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @func: (scope call): the function to call
* @user_data: (closure): user data for @func
*
/**
* gtk_print_settings_get_printer:
- * @settings: a #GtkPrintSettings
- *
- * Convenience function to obtain the value of
+ * @settings: a `GtkPrintSettings`
+ *
+ * Convenience function to obtain the value of
* %GTK_PRINT_SETTINGS_PRINTER.
*
* Returns: the printer name
/**
* gtk_print_settings_set_printer:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @printer: the printer name
- *
+ *
* Convenience function to set %GTK_PRINT_SETTINGS_PRINTER
* to @printer.
*/
/**
* gtk_print_settings_get_orientation:
- * @settings: a #GtkPrintSettings
- *
- * Get the value of %GTK_PRINT_SETTINGS_ORIENTATION,
- * converted to a #GtkPageOrientation.
- *
+ * @settings: a `GtkPrintSettings`
+ *
+ * Get the value of %GTK_PRINT_SETTINGS_ORIENTATION,
+ * converted to a `GtkPageOrientation`.
+ *
* Returns: the orientation
*/
GtkPageOrientation
/**
* gtk_print_settings_set_orientation:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @orientation: a page orientation
- *
+ *
* Sets the value of %GTK_PRINT_SETTINGS_ORIENTATION.
*/
void
/**
* gtk_print_settings_get_paper_size:
- * @settings: a #GtkPrintSettings
- *
- * Gets the value of %GTK_PRINT_SETTINGS_PAPER_FORMAT,
- * converted to a #GtkPaperSize.
- *
+ * @settings: a `GtkPrintSettings`
+ *
+ * Gets the value of %GTK_PRINT_SETTINGS_PAPER_FORMAT,
+ * converted to a `GtkPaperSize`.
+ *
* Returns: the paper size
*/
GtkPaperSize *
/**
* gtk_print_settings_set_paper_size:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @paper_size: a paper size
- *
+ *
* Sets the value of %GTK_PRINT_SETTINGS_PAPER_FORMAT,
* %GTK_PRINT_SETTINGS_PAPER_WIDTH and
* %GTK_PRINT_SETTINGS_PAPER_HEIGHT.
/**
* gtk_print_settings_get_paper_width:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @unit: the unit for the return value
- *
+ *
* Gets the value of %GTK_PRINT_SETTINGS_PAPER_WIDTH,
- * converted to @unit.
- *
+ * converted to @unit.
+ *
* Returns: the paper width, in units of @unit
*/
double
/**
* gtk_print_settings_set_paper_width:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @width: the paper width
* @unit: the units of @width
- *
+ *
* Sets the value of %GTK_PRINT_SETTINGS_PAPER_WIDTH.
*/
void
/**
* gtk_print_settings_get_paper_height:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @unit: the unit for the return value
- *
+ *
* Gets the value of %GTK_PRINT_SETTINGS_PAPER_HEIGHT,
- * converted to @unit.
- *
+ * converted to @unit.
+ *
* Returns: the paper height, in units of @unit
*/
double
/**
* gtk_print_settings_set_paper_height:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @height: the paper height
* @unit: the units of @height
- *
+ *
* Sets the value of %GTK_PRINT_SETTINGS_PAPER_HEIGHT.
*/
void
/**
* gtk_print_settings_get_use_color:
- * @settings: a #GtkPrintSettings
- *
+ * @settings: a `GtkPrintSettings`
+ *
* Gets the value of %GTK_PRINT_SETTINGS_USE_COLOR.
- *
+ *
* Returns: whether to use color
*/
gboolean
/**
* gtk_print_settings_set_use_color:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @use_color: whether to use color
- *
+ *
* Sets the value of %GTK_PRINT_SETTINGS_USE_COLOR.
*/
void
/**
* gtk_print_settings_get_collate:
- * @settings: a #GtkPrintSettings
- *
+ * @settings: a `GtkPrintSettings`
+ *
* Gets the value of %GTK_PRINT_SETTINGS_COLLATE.
- *
+ *
* Returns: whether to collate the printed pages
*/
gboolean
/**
* gtk_print_settings_set_collate:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @collate: whether to collate the output
- *
+ *
* Sets the value of %GTK_PRINT_SETTINGS_COLLATE.
*/
void
/**
* gtk_print_settings_get_reverse:
- * @settings: a #GtkPrintSettings
- *
+ * @settings: a `GtkPrintSettings`
+ *
* Gets the value of %GTK_PRINT_SETTINGS_REVERSE.
- *
+ *
* Returns: whether to reverse the order of the printed pages
*/
gboolean
/**
* gtk_print_settings_set_reverse:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @reverse: whether to reverse the output
- *
+ *
* Sets the value of %GTK_PRINT_SETTINGS_REVERSE.
*/
void
/**
* gtk_print_settings_get_duplex:
- * @settings: a #GtkPrintSettings
- *
+ * @settings: a `GtkPrintSettings`
+ *
* Gets the value of %GTK_PRINT_SETTINGS_DUPLEX.
- *
+ *
* Returns: whether to print the output in duplex.
*/
GtkPrintDuplex
/**
* gtk_print_settings_set_duplex:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @duplex: a #GtkPrintDuplex value
- *
+ *
* Sets the value of %GTK_PRINT_SETTINGS_DUPLEX.
*/
void
/**
* gtk_print_settings_get_quality:
- * @settings: a #GtkPrintSettings
- *
+ * @settings: a `GtkPrintSettings`
+ *
* Gets the value of %GTK_PRINT_SETTINGS_QUALITY.
- *
+ *
* Returns: the print quality
*/
GtkPrintQuality
/**
* gtk_print_settings_set_quality:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @quality: a #GtkPrintQuality value
*
* Sets the value of %GTK_PRINT_SETTINGS_QUALITY.
/**
* gtk_print_settings_get_page_set:
- * @settings: a #GtkPrintSettings
- *
+ * @settings: a `GtkPrintSettings`
+ *
* Gets the value of %GTK_PRINT_SETTINGS_PAGE_SET.
- *
+ *
* Returns: the set of pages to print
*/
GtkPageSet
/**
* gtk_print_settings_set_page_set:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @page_set: a #GtkPageSet value
- *
+ *
* Sets the value of %GTK_PRINT_SETTINGS_PAGE_SET.
*/
void
/**
* gtk_print_settings_get_number_up_layout:
- * @settings: a #GtkPrintSettings
- *
+ * @settings: a `GtkPrintSettings`
+ *
* Gets the value of %GTK_PRINT_SETTINGS_NUMBER_UP_LAYOUT.
- *
+ *
* Returns: layout of page in number-up mode
*/
GtkNumberUpLayout
/**
* gtk_print_settings_set_number_up_layout:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @number_up_layout: a #GtkNumberUpLayout value
- *
+ *
* Sets the value of %GTK_PRINT_SETTINGS_NUMBER_UP_LAYOUT.
*/
void
/**
* gtk_print_settings_get_n_copies:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
*
* Gets the value of %GTK_PRINT_SETTINGS_N_COPIES.
*
/**
* gtk_print_settings_set_n_copies:
- * @settings: a #GtkPrintSettings
- * @num_copies: the number of copies
- *
+ * @settings: a `GtkPrintSettings`
+ * @num_copies: the number of copies
+ *
* Sets the value of %GTK_PRINT_SETTINGS_N_COPIES.
*/
void
/**
* gtk_print_settings_get_number_up:
- * @settings: a #GtkPrintSettings
- *
+ * @settings: a `GtkPrintSettings`
+ *
* Gets the value of %GTK_PRINT_SETTINGS_NUMBER_UP.
- *
+ *
* Returns: the number of pages per sheet
*/
int
/**
* gtk_print_settings_set_number_up:
- * @settings: a #GtkPrintSettings
- * @number_up: the number of pages per sheet
- *
+ * @settings: a `GtkPrintSettings`
+ * @number_up: the number of pages per sheet
+ *
* Sets the value of %GTK_PRINT_SETTINGS_NUMBER_UP.
*/
void
/**
* gtk_print_settings_get_resolution:
- * @settings: a #GtkPrintSettings
- *
+ * @settings: a `GtkPrintSettings`
+ *
* Gets the value of %GTK_PRINT_SETTINGS_RESOLUTION.
- *
+ *
* Returns: the resolution in dpi
*/
int
/**
* gtk_print_settings_set_resolution:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @resolution: the resolution in dpi
- *
+ *
* Sets the values of %GTK_PRINT_SETTINGS_RESOLUTION,
- * %GTK_PRINT_SETTINGS_RESOLUTION_X and
+ * %GTK_PRINT_SETTINGS_RESOLUTION_X and
* %GTK_PRINT_SETTINGS_RESOLUTION_Y.
*/
void
/**
* gtk_print_settings_get_resolution_x:
- * @settings: a #GtkPrintSettings
- *
+ * @settings: a `GtkPrintSettings`
+ *
* Gets the value of %GTK_PRINT_SETTINGS_RESOLUTION_X.
- *
+ *
* Returns: the horizontal resolution in dpi
*/
int
/**
* gtk_print_settings_get_resolution_y:
- * @settings: a #GtkPrintSettings
- *
+ * @settings: a `GtkPrintSettings`
+ *
* Gets the value of %GTK_PRINT_SETTINGS_RESOLUTION_Y.
- *
+ *
* Returns: the vertical resolution in dpi
*/
int
/**
* gtk_print_settings_set_resolution_xy:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @resolution_x: the horizontal resolution in dpi
* @resolution_y: the vertical resolution in dpi
- *
+ *
* Sets the values of %GTK_PRINT_SETTINGS_RESOLUTION,
* %GTK_PRINT_SETTINGS_RESOLUTION_X and
* %GTK_PRINT_SETTINGS_RESOLUTION_Y.
/**
* gtk_print_settings_get_printer_lpi:
- * @settings: a #GtkPrintSettings
- *
+ * @settings: a `GtkPrintSettings`
+ *
* Gets the value of %GTK_PRINT_SETTINGS_PRINTER_LPI.
- *
+ *
* Returns: the resolution in lpi (lines per inch)
*/
double
/**
* gtk_print_settings_set_printer_lpi:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @lpi: the resolution in lpi (lines per inch)
- *
+ *
* Sets the value of %GTK_PRINT_SETTINGS_PRINTER_LPI.
*/
void
/**
* gtk_print_settings_get_scale:
- * @settings: a #GtkPrintSettings
- *
+ * @settings: a `GtkPrintSettings`
+ *
* Gets the value of %GTK_PRINT_SETTINGS_SCALE.
- *
+ *
* Returns: the scale in percent
*/
double
/**
* gtk_print_settings_set_scale:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @scale: the scale in percent
*
* Sets the value of %GTK_PRINT_SETTINGS_SCALE.
/**
* gtk_print_settings_get_print_pages:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
*
* Gets the value of %GTK_PRINT_SETTINGS_PRINT_PAGES.
*
/**
* gtk_print_settings_set_print_pages:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @pages: a #GtkPrintPages value
*
* Sets the value of %GTK_PRINT_SETTINGS_PRINT_PAGES.
/**
* gtk_print_settings_get_page_ranges:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @num_ranges: (out): return location for the length of the returned array
*
* Gets the value of %GTK_PRINT_SETTINGS_PAGE_RANGES.
*
* Returns: (array length=num_ranges) (transfer full): an array
- * of #GtkPageRanges. Use g_free() to free the array when
- * it is no longer needed.
+ * of `GtkPageRange`s. Use g_free() to free the array when
+ * it is no longer needed.
*/
GtkPageRange *
gtk_print_settings_get_page_ranges (GtkPrintSettings *settings,
/**
* gtk_print_settings_set_page_ranges:
- * @settings: a #GtkPrintSettings
- * @page_ranges: (array length=num_ranges): an array of #GtkPageRanges
+ * @settings: a `GtkPrintSettings`
+ * @page_ranges: (array length=num_ranges): an array of `GtkPageRange`s
* @num_ranges: the length of @page_ranges
- *
+ *
* Sets the value of %GTK_PRINT_SETTINGS_PAGE_RANGES.
*/
void
/**
* gtk_print_settings_get_default_source:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
*
* Gets the value of %GTK_PRINT_SETTINGS_DEFAULT_SOURCE.
*
/**
* gtk_print_settings_set_default_source:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @default_source: the default source
*
* Sets the value of %GTK_PRINT_SETTINGS_DEFAULT_SOURCE.
/**
* gtk_print_settings_get_media_type:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
*
* Gets the value of %GTK_PRINT_SETTINGS_MEDIA_TYPE.
*
/**
* gtk_print_settings_set_media_type:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @media_type: the media type
*
* Sets the value of %GTK_PRINT_SETTINGS_MEDIA_TYPE.
/**
* gtk_print_settings_get_dither:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
*
* Gets the value of %GTK_PRINT_SETTINGS_DITHER.
*
/**
* gtk_print_settings_set_dither:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @dither: the dithering that is used
*
* Sets the value of %GTK_PRINT_SETTINGS_DITHER.
/**
* gtk_print_settings_get_finishings:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
*
* Gets the value of %GTK_PRINT_SETTINGS_FINISHINGS.
*
/**
* gtk_print_settings_set_finishings:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @finishings: the finishings
*
* Sets the value of %GTK_PRINT_SETTINGS_FINISHINGS.
/**
* gtk_print_settings_get_output_bin:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
*
* Gets the value of %GTK_PRINT_SETTINGS_OUTPUT_BIN.
*
/**
* gtk_print_settings_set_output_bin:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @output_bin: the output bin
*
* Sets the value of %GTK_PRINT_SETTINGS_OUTPUT_BIN.
/**
* gtk_print_settings_load_file:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @file_name: (type filename): the filename to read the settings from
* @error: (allow-none): return location for errors, or %NULL
*
- * Reads the print settings from @file_name. If the file could not be loaded
- * then error is set to either a #GFileError or #GKeyFileError.
- * See gtk_print_settings_to_file().
+ * Reads the print settings from @file_name.
+ *
+ * If the file could not be loaded then error is set to either
+ * a `GFileError` or `GKeyFileError`.
+ *
+ * See [method@Gtk.PrintSettings.to_file].
*
* Returns: %TRUE on success
*/
* gtk_print_settings_new_from_file:
* @file_name: (type filename): the filename to read the settings from
* @error: (allow-none): return location for errors, or %NULL
- *
- * Reads the print settings from @file_name. Returns a new #GtkPrintSettings
- * object with the restored settings, or %NULL if an error occurred. If the
- * file could not be loaded then error is set to either a #GFileError or
- * #GKeyFileError. See gtk_print_settings_to_file().
*
- * Returns: the restored #GtkPrintSettings
+ * Reads the print settings from @file_name.
+ *
+ * Returns a new `GtkPrintSettings` object with the restored settings,
+ * or %NULL if an error occurred. If the file could not be loaded then
+ * error is set to either a `GFileError` or `GKeyFileError`.
+ *
+ * See [method@Gtk.PrintSettings.to_file].
+ *
+ * Returns: the restored `GtkPrintSettings`
*/
GtkPrintSettings *
gtk_print_settings_new_from_file (const char *file_name,
/**
* gtk_print_settings_load_key_file:
- * @settings: a #GtkPrintSettings
- * @key_file: the #GKeyFile to retrieve the settings from
- * @group_name: (allow-none): the name of the group to use, or %NULL to use the default
- * “Print Settings”
+ * @settings: a `GtkPrintSettings`
+ * @key_file: the `GKeyFile` to retrieve the settings from
+ * @group_name: (allow-none): the name of the group to use, or %NULL
+ * to use the default “Print Settings”
* @error: (allow-none): return location for errors, or %NULL
- *
- * Reads the print settings from the group @group_name in @key_file. If the
- * file could not be loaded then error is set to either a #GFileError or
- * #GKeyFileError.
+ *
+ * Reads the print settings from the group @group_name in @key_file.
+ *
+ * If the file could not be loaded then error is set to either a
+ * `GFileError` or `GKeyFileError`.
*
* Returns: %TRUE on success
*/
/**
* gtk_print_settings_new_from_key_file:
- * @key_file: the #GKeyFile to retrieve the settings from
+ * @key_file: the `GKeyFile` to retrieve the settings from
* @group_name: (allow-none): the name of the group to use, or %NULL to use
* the default “Print Settings”
* @error: (allow-none): return location for errors, or %NULL
*
- * Reads the print settings from the group @group_name in @key_file. Returns a
- * new #GtkPrintSettings object with the restored settings, or %NULL if an
- * error occurred. If the file could not be loaded then error is set to either
- * a #GFileError or #GKeyFileError.
+ * Reads the print settings from the group @group_name in @key_file.
*
- * Returns: the restored #GtkPrintSettings
+ * Returns a new `GtkPrintSettings` object with the restored settings,
+ * or %NULL if an error occurred. If the file could not be loaded then
+ * error is set to either `GFileError` or `GKeyFileError`.
+ *
+ * Returns: the restored `GtkPrintSettings`
*/
GtkPrintSettings *
gtk_print_settings_new_from_key_file (GKeyFile *key_file,
/**
* gtk_print_settings_to_file:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
* @file_name: (type filename): the file to save to
* @error: (allow-none): return location for errors, or %NULL
- *
- * This function saves the print settings from @settings to @file_name. If the
- * file could not be loaded then error is set to either a #GFileError or
- * #GKeyFileError.
- *
+ *
+ * This function saves the print settings from @settings to @file_name.
+ *
+ * If the file could not be written then error is set to either a
+ * `GFileError` or `GKeyFileError`.
+ *
* Returns: %TRUE on success
*/
gboolean
/**
* gtk_print_settings_to_key_file:
- * @settings: a #GtkPrintSettings
- * @key_file: the #GKeyFile to save the print settings to
+ * @settings: a `GtkPrintSettings`
+ * @key_file: the `GKeyFile` to save the print settings to
* @group_name: (nullable): the group to add the settings to in @key_file, or
* %NULL to use the default “Print Settings”
*
/**
* gtk_print_settings_to_gvariant:
- * @settings: a #GtkPrintSettings
+ * @settings: a `GtkPrintSettings`
*
* Serialize print settings to an a{sv} variant.
*
- * Returns: (transfer none): a new, floating, #GVariant
+ * Returns: (transfer none): a new, floating, `GVariant`
*/
GVariant *
gtk_print_settings_to_gvariant (GtkPrintSettings *settings)
/**
* gtk_print_settings_new_from_gvariant:
- * @variant: an a{sv} #GVariant
+ * @variant: an a{sv} `GVariant`
+ *
+ * Deserialize print settings from an a{sv} variant.
*
- * Deserialize print settings from an a{sv} variant in
- * the format produced by gtk_print_settings_to_gvariant().
+ * The variant must be in the format produced by
+ * [method@Gtk.PrintSettings.to_gvariant].
*
- * Returns: (transfer full): a new #GtkPrintSettings object
+ * Returns: (transfer full): a new `GtkPrintSettings` object
*/
GtkPrintSettings *
gtk_print_settings_new_from_gvariant (GVariant *variant)